import request from "@/utils/request";

// 查询项目组列表
export function listGroup(query) {
  return request({
    url: '/group/group/list',
    method: 'get',
    params: query
  })
}

// 查询套餐信息列表
export function listSetmeals(query) {
  return request({
    url: '/setmeals/setmeals/list',
    method: 'get',
    params: query
  })
}

// 查询套餐信息详细
export function getSetmeals(id) {
  return request({
    url: '/setmeals/setmeals/' + id,
    method: 'get'
  })
}

// 新增套餐信息
export function addSetmeal(data) {
  return request({
    url: '/setmeals/setmeals',
    method: 'post',
    data: data
  })
}

// 新增套餐+gourpids
export function addSetmealAndIds(data) {
  return request({
    url: '/setmeals/setmeals/addSetmealAndGroupIds',
    method: 'post',
    data: data
  })
}

// 修改套餐信息
export function updateSetmeals(data) {
  return request({
    url: '/setmeals/setmeals',
    method: 'put',
    data: data
  })
}

// 删除套餐信息
export function delSetmeals(id) {
  return request({
    url: '/setmeals/setmeals/' + id,
    method: 'delete'
  })
}
